﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;

namespace WoodAdmin.Models.ViewModels
{
    public class Register
    {
        /// <summary>
        /// 手机号码
        /// </summary>
        [Required(ErrorMessage = "请填写手机号！")]
        [DataType(DataType.PhoneNumber)]
        public string Phone { get; set; }

        /// <summary>
        /// 邮箱
        /// </summary>
        [Required(ErrorMessage = "请填写邮箱！")]
        [DataType(DataType.EmailAddress)]
        public string Email { get; set; }

        /// <summary>
        /// 用户名
        /// </summary>
        [Required(ErrorMessage = "请填写用户名！")]
        public string UserName { get; set; }

        /// <summary>
        /// 登录密码
        /// </summary>
        [Required(ErrorMessage = "请填写密码！")]
        [DataType(DataType.Password)]
        public string Password { get; set; }
    }
}
